package com.jd.mysql.mgr.dao;

import java.util.List;

import com.jd.mysql.mgr.pojo.MgrAccount;

public interface MgrAccountDAO{
	public MgrAccount findMgrAccountById(Integer id);
	public MgrAccount findMgrAccountByUserName(String username);
	public void saveMgrAccount(MgrAccount mgra);
	public void deleteMgrAccount(MgrAccount mgra);
	public void updateMgrAccount(MgrAccount mgra);
	/**
	 * find MgrAccount by username
	 */
	public MgrAccount findMgrAccountByUsernameAndPassword(String username,String password);
	public List<MgrAccount> getAccountList();
	public List<MgrAccount> getAccountList(Integer start, Integer limit,Integer groupId) ;
	public Long getAccountTotalCount(Integer groupId,Boolean enable);
}
